package mydebug

import (
	"iptv_server/v3/src/database"
	"iptv_server/v3/src/utils"
)

func InitDB() {
	db_host := utils.GetEnv("db_host", "127.0.0.1")
	db_host = "server.lan"
	db_port := utils.GetEnv("db_port", "15433")
	db_user := utils.GetEnv("db_user", "postgres")
	db_password := utils.GetEnv("db_password", "123456")
	db_dbname := utils.GetEnv("db_databasename", "postgres")
	db_dbname = "iptvserver"
	// user = utils.GetEnv("user", "postgres")
	// user = utils.GetEnv("user", "postgres")
	database.InitDatabase(db_host, db_port, db_dbname, db_user, db_password) // todo , 参数

}
